package org.gdufe.books.service;

import org.gdufe.pojos.dto.InsertBookDto;
import org.gdufe.pojos.dto.PageParams;
import org.gdufe.pojos.pojo.Book;
import org.gdufe.pojos.vo.R;
import org.gdufe.pojos.vo.PageResponseResult;

public interface BookService {
    //分页查询
    PageResponseResult querryBooks(String title, PageParams pageParams);
    //插入
    R insertBook(InsertBookDto insertBookDto);
    //借书
    R borrow(Integer id,String username);
    //归还
    R returnBook(Integer id,String username);
    //查找top10
    R querryTops();
    //查询现存所有书籍的id集合
    R listBId();
    R deleteBook(Integer id);
    R updateBook(Book book);
    R updatePoint(Integer id,Double point);
}
